package gui;

import java.awt.Dimension;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.border.Border;

public class InfoPanel extends JPanel {

	private static final long serialVersionUID = -8438576029794021570L;
	private JLabel notice;

	public InfoPanel() {
		setPreferredSize(new Dimension(420, 50));
		Border border = new BevelBorder(BevelBorder.RAISED);
		setBorder(border);

		setNotice(new JLabel());
		add(getNotice());
	}

	public void updateNotice(String text) {
		NoticeThread nt = new NoticeThread(text, getNotice());
		nt.start();
	}

	public void setNotice(JLabel notice) {
		this.notice = notice;
	}

	public JLabel getNotice() {
		return notice;
	}
}
